package com.xqboss.apps.domain.game;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xqboss.apps.enums.Material.MaterialTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 游戏材料冲击记录
 *
 * @author matao
 * @email 1271774121@qq.com
 * @date 2024-01-09 10:50:50
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("game_material_strike_record")
@AllArgsConstructor
@NoArgsConstructor
public class GameMaterialStrikeRecord extends Model<GameMaterialStrikeRecord> {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("")
    private Long id;
    @ApiModelProperty("合成编号")
    private String mergeNo;
    @ApiModelProperty("热豆/扳手")
    private MaterialTypeEnum mergeType;
    @ApiModelProperty("1成功 0失败")
    private Integer mergeStatus;
    @ApiModelProperty("risk系数")
    private BigDecimal riskRate;
    @ApiModelProperty("手续费")
    private BigDecimal commission;
    @ApiModelProperty("放入数量")
    private BigDecimal putNum;
    @ApiModelProperty("目标数量")
    private BigDecimal targetNum;
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
